import request from '@/utils/request'

// 查询宿舍电度数列表
export function listDegrees(query) {
  return request({
    url: '/business/degrees/list',
    method: 'get',
    params: query
  })
}

// 查询宿舍电度数详细
export function getDegrees(id) {
  return request({
    url: '/business/degrees/' + id,
    method: 'get'
  })
}

// 新增宿舍电度数
export function addDegrees(data) {
  return request({
    url: '/business/degrees',
    method: 'post',
    data: data
  })
}

// 修改宿舍电度数
export function updateDegrees(data) {
  return request({
    url: '/business/degrees',
    method: 'put',
    data: data
  })
}

// 删除宿舍电度数
export function delDegrees(id) {
  return request({
    url: '/business/degrees/' + id,
    method: 'delete'
  })
}

// 查询历史列表
export function listHisDegrees(query) {
  return request({
    url: '/business/degrees/listHisDegrees',
    method: 'get',
    params: query
  })
}